package com.jason.kotlin.gank.ui.manage

import android.content.Context
import android.content.Intent
import com.jason.kotlin.gank.GankConstant
import com.jason.kotlin.gank.ui.WebActivity

object PageManager {
    

    fun openWebPage(
        context: Context,
        titleFlag: String?,
        title: String?,
        url: String?
    ) {
        val intent = Intent(context.applicationContext, WebActivity::class.java)
        intent.putExtra(GankConstant.WEB_TITLE_FLAG, titleFlag)
        intent.putExtra(GankConstant.WEB_TITLE, title)
        intent.putExtra(GankConstant.WEB_URL, url)
        context.startActivity(intent)
    }
}